package com.shenda.device.codec;

import com.shenda.device.message.ReqMsg_GetMac;
import com.swak.rxtx.channel.Channel;
import com.swak.rxtx.channel.ChannelHandler;

/**
 * 设备心跳
 * 
 * @author lifeng
 */
public class ChannelHeartbeat extends ChannelHandler {

	@Override
	public void heartbeat(Channel channel) {
		super.heartbeat(channel);
		channel.write(ReqMsg_GetMac.of());
	}
}